﻿using LoveNote.Database.Helpers;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;

namespace LoveNote.Database.Entities
{
    public partial class PictureEntity
    {
        [NotMapped]
        public BitmapImage ImageSource
        {
            get
            {
                return ImageHelper.GetBitmapImage(Content);
            }
        }
    }
}
